package com.example.demo.model

import xyz.erupt.annotation.*
import xyz.erupt.annotation.sub_field.*
import xyz.erupt.jpa.model.*
import javax.persistence.*

@Erupt(name = "一对多新增")
@Table(name = "demo_complex_tab")
@Entity
class ComplexTab : BaseModel() {

    @EruptField(views = [View(title = "文本")], edit = Edit(title = "文本", notNull = true))
    var input: String = ""

    @EruptField(views = [View(title = "数值", sortable = true)], edit = Edit(title = "数值"))
    var number: Float? = null

}